insheet using ../Data/Raw/raw_attrition_prehand.csv, comma names clear

label variable hiringmanagerismale "Male Hiring Manager"
label variable hiringmanageriswhite "White Hiring Manager"
label variable hiringmanagereliteschool "Elite School Hiring Manager"
label variable hiringmanagerisempty "Hiring Manager Blinded"
label variable droppedout "Dropped Out"

global balancevars "iswhite ismale curassignments avgfeedbackscore totalactualhoursbilled hourlyrateamount"

reg droppedout hiringmanagerismale hiringmanageriswhite hiringmanagereliteschool hiringmanagerisempty, cluster(ciphertext)
	eststo one

reg droppedout hiringmanagerismale hiringmanageriswhite hiringmanagereliteschool hiringmanagerisempty $balancevars, cluster(ciphertext)
        estadd local Conditional "Y"
		eststo two

global myopts "bf(%15.2gc) sfmt(%15.2gc) prehead(\begin{tabular}{l*{14}{c}}) postfoot(\hline\hline \end{tabular}) se label noisily noeqlines nonumbers varlabels(_cons Constant, end("" ) nolast)  starlevels(* 0.1 ** 0.05 *** 0.01) replace"

esttab one two using ../Output/Tables/Appendix/TableA03.tex, $myopts keep(hiringmanagerismale hiringmanageriswhite hiringmanagereliteschool hiringmanagerisempty) stats(Conditional r2 N, label("Balance Vars" "\hline\(R^{2}\)" "Observations"))



** what screener covars predict attrition?


reg droppedout $balancevars, cluster(ciphertext)
	eststo one

reg droppedout $balancevars hiringmanagerismale hiringmanageriswhite hiringmanagereliteschool hiringmanagerisempty, cluster(ciphertext)
        estadd local Conditional "Y"
		eststo two

global myopts "bf(%15.2gc) sfmt(%15.2gc) prehead(\begin{tabular}{l*{14}{c}}) postfoot(\hline\hline \end{tabular}) se label noisily noeqlines nonumbers varlabels(_cons Constant, end("" ) nolast)  starlevels(* 0.1 ** 0.05 *** 0.01) replace"

esttab one two using ../Output/Tables/Appendix/TableA04.tex, $myopts keep($balancevars) stats(Conditional r2 N, label("HM assignment" "\hline\(R^{2}\)" "Observations"))

